package FirstExampe.last;

public class Movie {
	public static final int CHILDRENS = 2;
	public static final int REGULAR = 0;
	public static final int NEW_RELEASE = 1;

	private String _title;
	private Price _price;

	public Movie(String _title, Price _price) {
		super();
		this._title = _title;
		this.set_price(_price);
	}

	public double amount(int daysRented) {
		return _price.amount(daysRented);
	}

	public int frequent(int daysRented) {
		return _price.frequent(daysRented);
	}

	public String getTitle() {
		return _title;
	}

	public void setTitle(String _title) {
		this._title = _title;
	}

	public Price get_price() {
		return _price;
	}

	public void set_price(Price _price) {
		this._price = _price;
	}
}
